import java.util.HashMap;
import java.util.Random;

public class HelloSub
{

	public HelloSub() 
	{	
	}
	
	public int test1() 
	{
		HashMap<String,String> m = new HashMap();
		m.put("test1","This is test1 message.");	
		System.out.println("[---- test1 ----] "+m.get("test1"));
		try {
			Thread.sleep(200);
		} catch(Exception e) { }
		
		test2();
		
		return 1;
	}

	public int test2() 
	{
		HashMap<String,String> m = new HashMap();
		m.put("test2","This is test2 message.");	
		System.out.println("[---- test2 ----] "+m.get("test2"));
		try {
			Thread.sleep(200);
		} catch(Exception e) { }
		
		test3();
		
		return 2;
	}

	public int test3() 
	{
		HashMap<String,String> m = new HashMap();
		m.put("test3","This is test3 message.");	
		System.out.println("[---- test2 ----] "+m.get("test3"));
		try {
			Thread.sleep(200);
		} catch(Exception e) { }
		
		return 3;
	}
		
}
